<template>
  <a-modal
    title="会员发货"
    :width="640"
    :visible="visible"
    :confirmLoading="loading"
    @ok="handleOk"
    @cancel="handleCancel"
  >
    <a-spin :spinning="loading">
      <a-form :form="form" v-bind="formLayout">
        <a-form-item label="订单id" v-show="false">
          <a-input v-decorator="['id']"></a-input>
        </a-form-item>
        <a-form-item label="快递公司">
          <a-input v-decorator="['kd_gs']" placeholder="请输入快递公司" />
        </a-form-item>
        <a-form-item label="快递单号">
          <a-input v-decorator="['kd_num']" placeholder="请输入快递单号,门店自送则写'线下'" />
        </a-form-item>
      </a-form>
    </a-spin>
  </a-modal>
</template>

<script>
import formModalMixin from '@/mixins/formModalMixin'
import { vipSendOut } from '@/api/stat'

// 表单字段
const fields = ['id', 'kd_gs', 'kd_num']

export default {
  mixins: [formModalMixin],
  data () {
    this.fields = fields
    this.editAction = vipSendOut
    return {}
  }
}
</script>
